<template>
  <el-form>
    <el-form-item>
      <el-radio-group v-model="form.condition">
        <el-radio class="mt-3" :label="0" :disabled="this.disableChecked"
          >当前勾选项</el-radio
        ><br />
        <el-radio class="mt-3" :label="1">全部</el-radio><br />
        <!-- <el-radio class="mt-3" :label="2">当前搜索条件</el-radio> -->
      </el-radio-group>
    </el-form-item>
  </el-form>
</template>
<script lang="ts">
enum Condition {
  Checked,
  All,
  SearchQuery,
}

export default {
  name: 'BatchSelect',
  props: {
    disableChecked: {
      type: Boolean,
    },
  },
  data() {
    return {
      form: {
        condition: 0,
      },
    }
  },
  created() {
    if (this.disableChecked) {
      this.form.condition = 1
    }
  },
}
</script>
